package com.jnzc.ocr.common.bean;

import java.io.Serializable;
import java.util.List;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Tree.java
 * @author zhangcm 2017-07-05 10:35:52
 * @version 1.0
 */
@ApiModel(description = "树")
public class Tree<E> implements Serializable {

    private static final long serialVersionUID = 1839497692559761108L;

    @ApiModelProperty(value = "节点ID")
    private Object id;
    @ApiModelProperty(value = "排序")
    private Object sort;
    @ApiModelProperty(value = "节点对象")
    private E node;
    @ApiModelProperty(value = "子节点")
    private List<Tree<E>> childrenList = Lists.newArrayList();
    
    public Object getId() {
        return id;
    }
    
    public void setId(Object id) {
        this.id = id;
    }
    
    public Object getSort() {
        return sort;
    }
    
    public void setSort(Object sort) {
        this.sort = sort;
    }
    
    public E getNode() {
        return node;
    }
    
    public void setNode(E node) {
        this.node = node;
    }

    public List<Tree<E>> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<Tree<E>> childrenList) {
        this.childrenList = childrenList;
    }
}
